#pragma once
#include "Object.h"
class Sprite;
class Box;
enum CANNON_STATE
{
	C_UP, C_DOWN, C_ATTACK
};
#define SHOOT_TIME 200
#define BULLET_COUNT 3

class Cannon :
	public Object
{

private :
	Sprite* _sAppear;
	Sprite* _sGun;	
	bool _isShooting;
	bool _isStop;
	float _angle;
	int index;
	int _bulletCount;
	float _shoottime;
	CANNON_STATE _state;
	
public:
	Cannon(Box*);
	~Cannon(void);
	void init();
	void update();
	void render();
	
	int getIndex(float _agl);

	virtual Box* getCollisionBox();

};

